/**
 * Created by zhuo on 2017/8/1.
 */
var express = require('express');
var router = express.Router();
// import mockCompanyData from './mockData/companysMock.json';
var mockCompanyTypeData = require('./mockData/mockCompanyType.json');
var mockCompanyTypeByIdData = require('./mockData/mockCompanyTypeById.json');
var result = require("./mockData/operationResult.json");

var createAndUpdateData = {
    "message": "success",
    "organizationType": {
        "createTime": "23523534",
        "id": "项目类型",
        "name": "项目类型",
        "remark": "测试内容4bjw"
    },
    "result": true
};

/* GET users listing. */
router.get('/getOrganizationTypeList', function (req, res, next) {
    console.info("get organization Type now...");
    res.json(mockCompanyTypeData);
});

router.post('/create', function (req, res, next) {
    console.info("create organizationType now...");
    res.json(createAndUpdateData);
});
router.post('/delete', function (req, res, next) {
    console.info("delete organizationType now...:"+JSON.stringify(req.body));
    res.json(result);
});
router.post('/update', function (req, res, next) {
    console.info("update organizationType now...");
    res.json(createAndUpdateData);
});


module.exports = router;
/**
 * Created by zhuo on 2017/8/1.
 */
